<h1>Benutzerdaten {if $user.user_id != ""}{$user.user_name}{else} - neuer Benutzer{/if}</h1>
<br /><br/>

<form method="post" id="userdetailsform_{$user.user_id}" name="userdetailsform" onsubmit="return false;">
<div style="margin:10px;" id="userdetailsdiv">
	<input type="hidden" name="user_id" id="user_id" value="{$user.user_id}" />
	<div class="divFormFieldLabel" style="position:relative;">Name</div>
	<div class="divFormFieldInput" style="position:relative;"><input type="text" name="user_name" id="user_name" class="FormFieldInput" value="{$user.user_name}"/></div>
	<br style="clear:both;" />

	<div class="divFormFieldLabel" style="position:relative;">Login Name</div>
	<div class="divFormFieldInput" style="position:relative;"><input type="text" name="user_login_name" id="user_login_name" class="FormFieldInput" value="{$user.user_login_name}"/></div>
	<br style="clear:both;" />

	<div class="divFormFieldLabel" style="position:relative;">E-Mail</div>
	<div class="divFormFieldInput" style="position:relative;"><input type="text" name="user_email" id="user_email" class="FormFieldInput" value="{$user.user_email}"/></div>
	<br style="clear:both;" />

	<div class="divFormFieldLabel" style="position:relative;">Standard-Sprache (Content)</div>
	<div class="divFormFieldInput" style="position:relative;">
		<select size="1" name="user_interface_lang_id" />
			{foreach from=$languages item=lang}
				<option value="{$lang.lang_id}" {if $user.user_interface_lang_id==$lang.lang_id}selected="selected"{/if}>{$lang.lang_name}</option>
			{/foreach}
		</select>
	</div>
	<br style="clear:both;" />

	<div class="divFormFieldLabel" style="position:relative;">Benutzerlevel (Content)</div>
	<div class="divFormFieldInput" style="position:relative;">
		<select size="1" name="user_level" />
				<option value="0" {if $user.user_level==0}selected="selected"{/if}>Normal</option>
				<option value="1000" {if $user.user_level==1000}selected="selected"{/if}>Admin</option>
		</select>
	</div>
	<br style="clear:both;" />

	{if $user.user_id > 0}
		<div class="divFormFieldLabel" style="position:relative;">aktiv</div>
		<div class="divFormFieldInput" style="position:relative;">
			<select size="1" name="user_del" />
					<option value="0" {if $user.user_del==0}selected="selected"{/if}>ja</option>
					<option value="1" {if $user.user_del==1}selected="selected"{/if}>gesperrt</option>
			</select>
		</div>
		<br style="clear:both;" />
	{/if}

	<br /><br />
	<div class="divFormFieldLabel" style="position:relative;">Passwort</div>
	<div class="divFormFieldInput" style="position:relative;"><input type="password" name="user_login_pass" id="user_login_pass" class="FormFieldInput" value=""/></div>
	<br style="clear:both;" />
	<div class="divFormFieldLabel" style="position:relative;">Passwort (wiederholen)</div>
	<div class="divFormFieldInput" style="position:relative;"><input type="password" name="user_login_pass2" id="user_login_pass2" class="FormFieldInput" value=""/></div>
	<br style="clear:both;" />


		<div class="divFormFieldLabel">&nbsp;</div>
		<div class="divFormFieldInput"><input type="button" name="submitbtn" value="speichern" class="submitbtn" onclick="{literal}xajax.request({xjxfun:'UserAdministrationUserDetailSave'},{parameters:[xajax.getFormValues('userdetailsform_{/literal}{$user.user_id}{literal}')]});{/literal}"/></div>
		<br style="clear:both;" />	
</div>	
</form>